// extendReal

export default function (tableData, tableHeader, realSector, realIpia) {
  const extSector = { icao: "扇区数", type: "", valTyp: "" };
  const extIpia = { icao: "独立进近", type: "", valTyp: "" };

  tableHeader.forEach((col) => {
    if (col.index > -1) {
      if (col.index < realSector.length) {
        extSector[col.prop] = realSector[col.index];
      }
      if (col.index < realIpia.length) {
        extIpia[col.prop] = realIpia[col.index];
      }
    }
  });

  return { extSector, extIpia };
}
